n=int(input())
#if n==0:
#    print("<a></a>")
#elif n==1:
#    a=""
#    a=a+"<a"
#    a=a+" "
#    a=a+input()
#    a=a+"="
#    a=a+"\""
#    a=a+input()
#    a=a+"\""
#    a=a+">"
#    a=a+"</a>"
#   print(a)
#else:
z=""
z=z+"<a" 
for i in range(n):
    z=z+" "
    z=z+input()
    z=z+"=\""
    z=z+input()
    z=z+"\""
z=z+"></a>"   
print(z)



#str=""

#str = str + "abc"
#str = str + "..."
#str = str + "\""

#print (str)